﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public class FighAttributeMgr
{
    public Dictionary<byte, Attribute> Attributes { get; private set; }

    public FighAttributeMgr()
    {
        Attributes = new Dictionary<byte, Attribute>();
    }
      
    public void Set(byte szPos, Attribute attribute)
    {
        Attributes[szPos] = attribute;
    }

    public Attribute Get(byte szPos)
    {
        if (Attributes.TryGetValue(szPos, out Attribute attribute))
        {
            return attribute;
        }

        return new Attribute();
    }
}
